-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiler: disallow callconv
etc from depending on function parameters
#22264
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rexicon226
reviewed
Dec 18, 2024
Just a small refactor.
mlugg
force-pushed
the
no-generic-callconv
branch
from
December 18, 2024 20:35
5e48cdc
to
594ef31
Compare
mlugg
added
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
release notes
This PR should be mentioned in the release notes.
labels
Dec 18, 2024
mlugg
force-pushed
the
no-generic-callconv
branch
from
December 18, 2024 22:08
594ef31
to
d25df63
Compare
mlugg
force-pushed
the
no-generic-callconv
branch
2 times, most recently
from
December 18, 2024 23:35
1679a65
to
26aafac
Compare
This includes function aliases, but not function declarations. Also, re-introduce a target check for function alignment which was inadvertently removed in the prior commit.
mlugg
force-pushed
the
no-generic-callconv
branch
from
December 19, 2024 03:22
26aafac
to
58b8b1a
Compare
|
That's a fascinating comparison. I suppose I'm introducing a little more indirection via function instances' generic owners, which are more likely to miss, or something along those lines? (Regardless, no overall perf impact -- & an improvement if anything -- so pretty good.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
release notes
This PR should be mentioned in the release notes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
even if you thought this feature was useful it really doesn't seem worth 500 damn lines of compiler logic :)
Resolves: #22261
This PR also implements a breaking change to disallow
align
/linksection
/addrspace
annotations on globals with comptime-only types. This includes function aliases, but not function declarations.